/*
 * This file is part of SND.
 *
 * Sensor Network Deployer
 * Copyright (C)  Michael Morckos 2008 <mikey.morckos@gmail.com>
 * 
 * SND is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * SND is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with SND.  If not, see <http://www.gnu.org/licenses/>.
 */

import java.util.LinkedList;

public class Node {
	
	private int ID;
	private int X, Y;
	private int T_RANGE;
	private boolean STATUS;
	private boolean CONNETCED;
	private LinkedList NEIGHBOURS;

	public Node(int ID, int X, int Y, int T_RANGE, boolean STATUS) {
		
		this.ID = ID;
		this.X = X;
		this.Y = Y;
		this.T_RANGE = T_RANGE;
		this.STATUS = STATUS;
		CONNETCED = true;
		
		NEIGHBOURS = new LinkedList();
	}

	public boolean getCONNECTED() {
		
		return CONNETCED;
	}

	public void setCONNECTED(boolean CONNETCED) {
		
		this.CONNETCED = CONNETCED;
	}

	public int getID() {
		
		return ID;
	}

	public void setID(int ID) {
		
		this.ID = ID;
	}
	
    public int getT_RANGE() {
		
		return T_RANGE;
	}

	public void setT_RANGE(int T_RANGE) {
		
		this.T_RANGE = T_RANGE;
	}

	public int getX() {
		
		return X;
	}

	public void setX(int X) {
		
		this.X = X;
	}

	public int getY() {
		
		return Y;
	}

	public void setY(int Y) {
		
		this.Y = Y;
	}

	public int getNEIGHBOURS() {
		
		return NEIGHBOURS.size();
	}

	public void addNEIGHBOUR(Node node) {
		
		NEIGHBOURS.addLast(node);
	}

	public boolean getSTATUS() {
		
		return STATUS;
	}

	public void setSTATUS(boolean STATUS) {
		
		this.STATUS = STATUS;
	}
}

